import request from '@/plugins/request';


/*
 * 修复真福利商品的图片
 * */
export function fixImgApi(data) {
  return request({
    url: 'welfare/goods/content/fix',
    method: 'post',
    data
  });
}
/*
 * 批量导入
 * */
export function batchImportApi(data) {
  return request({
    url: 'welfare/goods/batchImport',
    method: 'post',
    data
  });
}
/*
 * 商品池列表
 * */
export function GoodsListApi(params) {
  return request({
    url: 'welfare/goods/list',
    method: 'get',
    params
  });
}
/*
 * 获得商品的详细信息
 * */
export function GoodsDetailApi(id) {
    return request({
      url: `welfare/goods/detail/${id}`,
      method: 'get',
    });
  }
 /*
 * 查询信息2
 * */
 export function GoodsDetailApi2(id) {
  return request({
    url: `welfare/goods/prepareSync/${id}`,
    method: 'get',
  });
}

  /*
 * 查询品牌号
 * */
  export function queryBrandApi(params) {
    return request({
      url: 'product/brand',
      method: 'get',
      params
    });
  }
   /*
 * 查询单位
 * */
   export function queryUnitApi(params) {
    return request({
      url: 'product/unit',
      method: 'get',
      params
    });
  }
